<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/6 0006
 * Time: 15:14
 */

/**
 * 结算文件下载接口
 * @link https://global.alipay.com/service/app_split_cn/27
 */
class GlobalForexLiquidationBuilder extends AlipayTradeBuilder
{
    /**
     * 交易的开始日期、格式为YYYYMMDD
     * @param string $start_date 格式为YYYYMMDD
     * @return $this
     */
    public function setStartDate($start_date)
    {
        $this->params['start_date'] = $start_date;
        return $this;
    }

    /**
     * 交易的开始日期、格式为YYYYMMDD
     * @return null|string 格式为YYYYMMDD
     */
    public function getStartDate()
    {
        return isset($this->params['start_date']) ? $this->params['start_date'] : null;
    }

    /**
     * 交易的结束日期、格式为YYYYMMDD
     * @param string $end_date 格式为YYYYMMDD
     * @return $this
     */
    public function setEndDate($end_date)
    {
        $this->params['end_date'] = $end_date;
        return $this;
    }

    /**
     * 交易的结束日期、格式为YYYYMMDD
     * @return null|string
     */
    public function getEndDate()
    {
        return isset($this->params['end_date']) ? $this->params['end_date'] : null;
    }

    public  function getServiceName()
    {
        return 'forex_liquidation_file';
    }
}